package com.bear.fastrepair.mvvm.ui.manager

import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavController
import com.bear.fastrepair.base.BaseFragment
import com.bear.fastrepair.databinding.ManagerAddBinding

class ManagerAddFragment : BaseFragment<ManagerAddBinding>() {
    override val title: String
        get() = "添加管理员"

    private lateinit var managerViewModel: ManagerViewModel

    override fun init() {
        managerViewModel = ViewModelProvider(
            requireActivity(),
            ManagerViewModelFactory()
        ).get(ManagerViewModel::class.java)
        binding.include.toolbarTitle.text = title
        binding.include.toolbarBack.setOnClickListener { findNavController().popBackStack() }
    }

}